package cn.hh.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.hh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 实体类：
 */
public class OrderPetAcquisition extends BaseDomain{

    /**
     * 订单唯一编号: 有实际意义的
     */
    private String orderSn;
    /**
     * 摘要
     */
    private String digest;
    // 最后收购时间: 过了这个时间,这个订单就自动取消 - 删除
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastcomfirmtime;
    /**
     * 待处理0 完成1 取消-1
     */
    private Integer state;
    // 价格
    private BigDecimal price;
    /**
     * 0垫付 1余额 2银行转账
     */
    private Integer paytype;
    // 收购哪一个宠物
    private Long petId;
    //  去哪一个用户哪里去收购的
    private Long userId;
    // 哪一个店铺去收购的
    private Long shopId;
    /**
     * 收购宠物的地址
     */
    private String address;
    /**
     * 店员id
     */
    // 哪一个店员去收购
    private Long empId;
    // 这个订单来自哪一个寻主消息
    private Long searchMasterMsgId;


    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public Date getLastcomfirmtime() {
        return lastcomfirmtime;
    }

    public void setLastcomfirmtime(Date lastcomfirmtime) {
        this.lastcomfirmtime = lastcomfirmtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getPaytype() {
        return paytype;
    }

    public void setPaytype(Integer paytype) {
        this.paytype = paytype;
    }

    public Long getPetId() {
        return petId;
    }

    public void setPetId(Long petId) {
        this.petId = petId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getEmpId() {
        return empId;
    }

    public void setEmpId(Long empId) {
        this.empId = empId;
    }

    public Long getSearchMasterMsgId() {
        return searchMasterMsgId;
    }

    public void setSearchMasterMsgId(Long searchMasterMsgId) {
        this.searchMasterMsgId = searchMasterMsgId;
    }

    @Override
    public String toString() {
        return "OrderPetAcquisition{" +
        ", orderSn=" + orderSn +
        ", digest=" + digest +
        ", lastcomfirmtime=" + lastcomfirmtime +
        ", state=" + state +
        ", price=" + price +
        ", paytype=" + paytype +
        ", petId=" + petId +
        ", userId=" + userId +
        ", shopId=" + shopId +
        ", address=" + address +
        ", empId=" + empId +
        ", searchMasterMsgId=" + searchMasterMsgId +
        "}";
    }
}
